import request from '@/utils/request'

export function getArea() {
  return request({
    url: '/api/v1/assistive/getArea',
    method: 'get'
  })
}

export function getTags() {
  return request({
    url: '/api/v1/tags/getTags',
    method: 'get'
  })
}

export function getPostionPagingList(data) {
  return request({
    url: '/api/v1/position/positionPagingList',
    method: 'post',
    data
  })
}

export function positionSave(data) {
  return request({
    url: '/api/v1/position/store',
    method: 'post',
    data
  })
}

export function getAdTypePagingList(data) {
  return request({
    url: '/api/v1/adtype/adtypePagingList',
    method: 'post',
    data
  })
}

export function adTypeSave(data) {
  return request({
    url: '/api/v1/adtype/store',
    method: 'post',
    data
  })
}

export function adTypeDelete(data) {
  return request({
    url: '/api/v1/adtype/delete',
    method: 'post',
    data
  })
}

export function getTagsPagingList(data) {
  return request({
    url: '/api/v1/tags/tagsPagingList',
    method: 'post',
    data
  })
}

export function tagsSave(data) {
  return request({
    url: '/api/v1/tags/store',
    method: 'post',
    data
  })
}

export function tagsDelete(data) {
  return request({
    url: '/api/v1/tags/tagDelete',
    method: 'post',
    data
  })
}
